package org.jeecg.modules.lottery.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.lottery.entity.Lottery;
import org.jeecg.modules.purchase.entity.PurchasePlan;

import java.util.List;

public interface ILotteryService extends IService<Lottery> {

    List<Lottery> conductLottery(String Id,String purchaseId,String category, int drawCount, String operator);

    List<Lottery> conductSupplementaryLottery(String Id,String purchaseId, String category, int supplementCount, String operator);

    boolean abandonLottery(String lotteryId, String operator,String remark);

    List<PurchasePlan> getEligiblePurchasePlan(String category);

    List<Lottery> getLotteryResults(String lotteryStatus);

    List<Lottery> getLotteryResultsByStatusAndPurchaseId(String lotteryStatus, String purchaseId);

    String getWinningSupplierNamesByPurchaseId(String purchaseId);

    boolean hasLotteryForpurchase(String purchaseId);


    boolean removeWinningSupplier(String lotteryId, String companyName);
}
